<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        body {
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100vh;
            width: 100vw;
            background: #141419;
            color: white;
        }

        .container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            width: 100vw;
            max-height: 800px;
            max-width: 1280px;
            min-height: 600px;
            min-width: 1000px;
        }

        .title {
            font-family: "Lexend Deca", sans-serif;
            position: absolute;
            bottom: 0;
            left: calc(50% - 120px);
            width: 300px;
            margin-bottom: -6px;
        }

        .steps {
            width: 500px;
            height: 1500px;
            position: absolute;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .step {
            width: 450px;
            height: 70px;
            border-top: 2px solid grey;
            position: relative;
        }

        .window {
            position: absolute;
            border-radius: 20px;
            height: 500px;
            width: 500px;
            overflow: hidden;
            box-shadow: 6px 6px 16px 0 rgba(217, 210, 200, 0.51), -6px -6px 16px 0 rgba(255, 255, 255, 0.43);
        }

        .e1,
        .e2,
        .i1,
        .i2,
        .t1,
        .t2 {
            display: inline-block;
        }

        .e1 {
            animation: jumpUpRight 4s infinite;
        }

        .e2 {
            animation: jumpDownLeft 4s infinite;
        }

        .i1 {
            animation: dropDown 4s infinite;
        }

        .i2 {
            animation: dropBounce 4s infinite;
        }

        .t1 {
            transform-origin: bottom center;
            animation: leanRight 4s infinite;
        }

        .t2 {
            transform-origin: bottom center;
            animation: leanLeft 4s infinite;
        }

        @keyframes jumpUpRight {
            20% {
                transform: translateY(5%) scaleY(0.9);
            }

            40% {
                transform: translateY(-300%) translateX(100%) rotate(90deg) scaleY(1.2);
            }

            50% {
                transform: translateY(-160%) translateX(120%) rotate(180deg) scaleY(1);
            }

            70% {
                transform: translateY(-170%) translateX(280%) rotate(360deg) scaleY(1);
            }

            80%,
            100% {
                transform: translateY(0) translateX(300%) scaleY(1);
            }
        }

        @keyframes jumpDownLeft {
            20% {
                transform: translateY(5%) scaleY(0.9);
            }

            30% {
                transform: translateY(170%) scaleY(1.2);
            }

            40% {
                transform: translateY(180%) scaleY(0.9);
            }

            50% {
                transform: translateY(200%) translateX(-120%) rotate(-180deg) scaleY(1);
            }

            70% {
                transform: translateY(170%) translateX(-280%) rotate(-360deg) scaleY(1);
            }

            75% {
                transform: translateY(175%) translateX(-280%) rotate(-360deg) scaleY(0.9);
            }

            80%,
            100% {
                transform: translateY(0) translateX(-300%) scaleY(1);
            }
        }

        @keyframes dropDown {
            100% {
                transform: translateY(720%) rotate(-2160deg);
            }
        }

        @keyframes leanRight {
            40% {
                transform: rotate(40deg);
            }

            80%,
            100% {
                transform: rotate(0deg);
            }
        }

        @keyframes leanLeft {
            40% {
                transform: rotate(-45deg);
            }

            80%,
            100% {
                transform: rotate(0deg);
            }
        }

        @keyframes dropBounce {
            10% {
                transform: translateY(70%) rotate(180deg);
            }

            45% {
                transform: translateY(715%) rotate(180deg) scaleY(1);
            }

            50% {
                transform: translateY(725%) rotate(180deg) scaleY(0.8);
            }

            70% {
                transform: translateY(660%) rotate(0deg) scaleY(1);
            }

            95%,
            100% {
                transform: translateY(720%) rotate(0deg);
            }
        }
    </style>
</head>

<body>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.5.1/gsap.min.js"></script>
    <div class="container">
        <div class="window">
            <div class="steps">
                <div class="step">
                    <h1 class="title">
                        <span>r</span>
                        <span class="e1">e</span>
                        <span>p</span>
                        <span class="e2">e</span>
                        <span class="t1">t</span>
                        <span class="i1">i</span>
                        <span class="t2">t</span>
                        <span class="i2">i</span>
                        <span>o</span>
                        <span>n</span>
                    </h1>
                </div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step">
                    <h1 class="title">
                        <span>r</span>
                        <span class="e1">e</span>
                        <span>p</span>
                        <span class="e2">e</span>
                        <span class="t1">t</span>
                        <span class="i1">i</span>
                        <span class="t2">t</span>
                        <span class="i2">i</span>
                        <span>o</span>
                        <span>n</span>
                    </h1>
                </div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step">
                    <h1 class="title">
                        <span>r</span>
                        <span class="e1">e</span>
                        <span>p</span>
                        <span class="e2">e</span>
                        <span class="t1">t</span>
                        <span class="i1">i</span>
                        <span class="t2">t</span>
                        <span class="i2">i</span>
                        <span>o</span>
                        <span>n</span>
                    </h1>
                </div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step">
                    <h1 class="title">
                        <span>r</span>
                        <span class="e1">e</span>
                        <span>p</span>
                        <span class="e2">e</span>
                        <span class="t1">t</span>
                        <span class="i1">i</span>
                        <span class="t2">t</span>
                        <span class="i2">i</span>
                        <span>o</span>
                        <span>n</span>
                    </h1>
                </div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step">
                    <h1 class="title">
                        <span>r</span>
                        <span class="e1">e</span>
                        <span>p</span>
                        <span class="e2">e</span>
                        <span class="t1">t</span>
                        <span class="i1">i</span>
                        <span class="t2">t</span>
                        <span class="i2">i</span>
                        <span>o</span>
                        <span>n</span>
                    </h1>
                </div>
                <div class="step"></div>
                <div class="step"></div>
                <div class="step"></div>
            </div>
        </div>

    </div>

    <script>
        const tl = gsap.timeline();

        tl.to(".steps", {
            y: "-950px",
            duration: 20,
            repeat: -1,
            ease: "none"
        });

    </script>
</body>

</html>